﻿using Bricks.Component.Utils;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Bricks.Business.Models.QualityManagement
{
    [Description("质量整改")]
    public class QualityCorrective : EntityBase<Guid>
    {
        public QualityCorrective()
        {
            ID = GuidHelper.NewGuid();
        }

        [Display(Name = "整改标题")]
        [StringLength(256)]
        public string CorrectiveTitle { get; set; }

        /// <summary>
        /// 此处实际是通过通报ID关联内容
        /// </summary>
        [Display(Name = "通报ID")]
        public Guid? CircularID { get; set; }

        [Display(Name = "填报时间")]
        public DateTime FormTime { get; set; }  //默认取当前时间

        [Display(Name = "填报单位")]
        public Guid FormOrgID { get; set; }  //取登录人的单位ID

        [Display(Name = "填报人")]
        public Guid FormUserID { get; set; }  //登录人ID

        [Display(Name = "整改内容")]
        public string Content { get; set; }

        [Display(Name = "完成情况")]
        public string FinishCondition { get; set; }
    }
}
